<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title>Our Web Shop: <%= controller.action_name %></title>
  	<%= stylesheet_link_tag 'reset' %>
		<%= stylesheet_link_tag 'scaffold' %>
		<%= stylesheet_link_tag 'web_shop' %>
		<%= stylesheet_link_tag 'tabs' %>
		<%= javascript_include_tag :defaults %>
</head>
<body>
	<div id = "background"> <!-- this is for the CSS shaded background -->
	<div id="wrapper">
		<div id="header">
			Store Name
			<%= render(:partial => "admin/admin_tabs") if (@user && @user.isAdmin?) %>
		</div> <!-- end header -->

		<div id="mainnavi">
	 		<%= render(:partial => "shared/user_info", :locals => {:user => @user, :notice => flash[:notice]})%>
		</div> <!-- end mainnavi -->
		<%= render :partial => "shared/navigation" %>
		<%= render :partial => "shared/product_search"%>
		<%= clear_floats %>
		
		<div id="sidebar">
			<div id="cart">	
				<% if @cart%>
				<%= render :partial => "store/cart", :object => @cart %>
				<% end %>
			</div>
		</div> <!-- end sidebar -->
		
		<div id = "content">
		<%= yield %>  <%# this means render the .html.erb file of the controller action (i.e. index, show, edit, etc) here %>
		</div> <!-- end content -->
		
		<div id="footer">
			copyright by ~us~
			<div id = "rss_link">
			<%=link_to "rss feed", :controller => "store", :format => "xml" %> of our articles
			</div>
		</div> <!-- end footer -->
	</div> <!-- end wrapper -->
	</div> <!-- end background -->
</body>
</html>